import request from '@/utils/request'

// 查询功能分析列表
export function listFunctionalAnalysis(query) {
  return request({
    url: '/business/functionalAnalysis/list',
    method: 'get',
    params: query
  })
}

// 查询功能分析详细
export function getFunctionalAnalysis(id) {
  return request({
    url: '/business/functionalAnalysis/' + id,
    method: 'get'
  })
}

// 新增功能分析
export function addFunctionalAnalysis(data) {
  return request({
    url: '/business/functionalAnalysis',
    method: 'post',
    data: data
  })
}

// 修改功能分析
export function updateFunctionalAnalysis(data) {
  return request({
    url: '/business/functionalAnalysis',
    method: 'put',
    data: data
  })
}

// 删除功能分析
export function delFunctionalAnalysis(id) {
  return request({
    url: '/business/functionalAnalysis/' + id,
    method: 'delete'
  })
}
